<!DOCTYPE html>
<html>
    <head>
        <script src="vue.js"></script>
    </head>
    <body>
        <div id="app">
        </div>
        <script>
           let MyPlugin = {};
           MyPlugin.install = function(Vue,options){
               console.log(options);
               Vue.direction('my-directive',{
                   bind(el,binding){
                       el.style='width:100px;height:100px;background-color:#ccc';
                   }
               });
           }
           Vue.use(MyPlugin,{someOption:true});
           var vm = new Vue({
               el:'#app'
           });
        </script>
    </body>

</html>